#include<iostream>
#include<string.h>
using namespace std;
class Solution {
public:
    bool isSubsequence(string s, string t) {
    int i=0,j=0;
    int n=s.size(),m=t.size();
    for(i=0,j=0;i<n&&j<m;i++,j++)
    {
        while(j<m&&s[i]!=t[i])j++;
        if(j>=m)return false;
    }
    if(i==n)return true;
    return false;
    }
};